{layout name="public/layout" /}
{include file='yxnavbar'}


<div class="main">
    {include file='game/game_common_nav'}
    <div class="panel panel-info">
        <div class="panel-heading">当前数量： {$page_total}</div>
        <div class="panel-body">
            <div class="form-group">
                {if count($themelist)>1}
                <div class="col-xs-12 col-sm-2 col-md-2">
                    <select onchange="submitForm();" class="form-control" name="themeid">
                        {loop $themelist $row}
                        <option value="{$row['id']}" {if $themeid == $row['id'] }selected="selected"{/if}>{$row['id']} - {php echo mb_substr($row['title'],0,8,'utf-8');}</option>
                        {/loop}
                    </select>
                </div>
                {else}
                <input type="hidden" name="themeid" value="{$themeid}" />
                {/if}
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-1 control-label">范围</label>
                <div class="col-sm-9 col-xs-9 col-md-9">
                    <div class="btn-group">
                        <a href="/web/index.php?c=site&a=entry&themeid={$themeid}&op=detail&do={$do}&m={$_P['m']}&uid={$uid}" class="btn {if $type == ''}btn-primary{else}btn-default{/if}">不限<span style="color: #ff0000">{$page_total}</span></a>
                        <a href="/web/index.php?c=site&a=entry&themeid={$themeid}&op=detail&do={$do}&m={$_P['m']}&uid={$uid}&type=friend" class="btn {if $type == 'friend'}btn-primary{else}btn-default{/if}">好友到访<span style="color: #ff0000">{$list['invite_total']}</span></a>
                        <a href="/web/index.php?c=site&a=entry&themeid={$themeid}&op=detail&do={$do}&m={$_P['m']}&uid={$uid}&type=share" class="btn {if $type == 'share'}btn-primary{else}btn-default{/if}">邀请好友<span style="color: #ff0000">{$share_total}</span></a>
                        <a href="/web/index.php?c=site&a=entry&themeid={$themeid}&op=detail&do={$do}&m={$_P['m']}&uid={$uid}&type=order" class="btn {if $type == 'order'}btn-primary{else}btn-default{/if}">转介绍<span style="color: #ff0000">{$list['order_total']}</span></a>
                        <a href="/web/index.php?c=site&a=entry&themeid={$themeid}&op=detail&do={$do}&m={$_P['m']}&uid={$uid}&type=level" class="btn {if $type == 'level'}btn-primary{else}btn-default{/if}">通关记录<span style="color: #ff0000">{$list['level_total']}</span></a>
                    </div>
                </div>
            </div>

                <div class="form-group">
                    {if count($themelist)>1}
                    <div class="col-xs-12 col-sm-2 col-md-2">
                        <select onchange="submitForm();" class="form-control" name="themeid">
                            {loop $themelist $row}
                            <option value="{$row['id']}" {if $themeid == $row['id'] }selected="selected"{/if}>{$row['id']} - {php echo mb_substr($row['title'],0,8,'utf-8');}</option>
                            {/loop}
                        </select>
                    </div>
                    {else}
                    <input type="hidden" name="themeid" value="{$themeid}" />
                    {/if}
                </div>
        </div>
    </div>

    <input type="hidden" name="current_ac" id="current_ac" value="{$ac}">
    <!--  列表框  -->
    <div class="tab-content">
        <div class="panel panel-default">
            <div class="panel-body table-responsive">
                <table class="table table-hover">
                    <thead class="navbar-inner">
                    <tr>
                        <th >序号</th>
                        <th >头像</th>
                        <th >昵称</th>
                        <th >类型</th>
                        <th >时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list['list'] $index $item}
                    <tr>
                        <td>{php echo $page_total - (($page_index-1)*$page_size)- $index;}</td>
                        <td><img src="{php echo tomedia($item['avatar']);}" style="width: 40px;height: 40px;padding: 1px;"></td>
                        <td>{$item['title']}</td>
                        <td>{$item['tips']}</td>
                        <td>{$item['time']}</td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{$pager}
